package com.gxa.usermanagement.mapper;

import com.gxa.common.entity.usermange.Distribution;
import com.gxa.common.entity.usermange.DistributionAuditing;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DistributionMapper {

    Integer countDistribution();

    Integer addDistributionMapper(Distribution distribution);

    List<Distribution> findDistributionByIdMapper(long id);

    List<Distribution> findDistributionAllMapper(@Param("start") Integer start, @Param("off") Integer off);

    Integer updateDistributionMapper(@Param("state") long state,@Param("id") long id);

    Integer addAuditingMapper(DistributionAuditing distributionAuditing);
}
